<?php
/**
 * Created by PhpStorm.
 * User: Raytine
 * Date: 2018/8/30
 * Time: 11:55
 */

namespace PddWechat\Models\User\Data;


use PddWechat\Models\User\Dao\BindBankCardDao;
use PddWechat\Models\User\DataObject\UserBankCardDo;

class BindBankCardData
{
    public function __construct()
    {
        $this->bindBankCardDao = new BindBankCardDao();
    }

    public function insert(UserBankCardDo $userBankCardDo) {
        return $this->bindBankCardDao->insert($userBankCardDo);
    }

    public function edit(UserBankCardDo $userBankCardDo) {
        return $this->bindBankCardDao->edit($userBankCardDo);
    }

    public function selectByUid(int $uid) {
        return $this->bindBankCardDao->selectByUid($uid);
    }
}